const logger = require('../middleware/logger');

/**
 * @param {import('../index').Application} app 
 */
module.exports = (app) => {
  const { router, controller } = app;

  const ssoRouter = router.namespace('/sso', logger);

  ssoRouter.get('/login', controller.sso.login);
  ssoRouter.get('/get-user-info', controller.sso.getUserInfo);
  ssoRouter.get('/logout', controller.sso.logout);
};